﻿<Window x:Class="NetworkMessenger.ChatWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Chat Window" Height="387" Width="566" Icon="/NetworkMessenger;component/NetworkMessenger.ico" Loaded="Window_Loaded" ResizeMode="CanMinimize">
    <Window.Resources>
        <ResourceDictionary Source="StyleDictionary.xaml"/>
    </Window.Resources>
    <Grid>
        <Rectangle Name="backgroundRectangle" Style="{StaticResource BackgroundRectangle}"/>
        <Image Margin="0,12,12,0" Name="chatImage" Source="/NetworkMessenger;component/NetworkMessenger.ico" Stretch="Uniform" MaxWidth="97" HorizontalAlignment="Right" Width="95" Height="112" VerticalAlignment="Top" />
        <TextBox Name="messagesTextBox" Margin="15,12,123,113" TextWrapping="Wrap" IsReadOnly="True" ScrollViewer.CanContentScroll="True" ScrollViewer.VerticalScrollBarVisibility="Visible" Background="Transparent" Foreground="White" />
        <TextBox Name="toSendTextBox" Height="77" Margin="15,0,123,15" VerticalAlignment="Bottom" IsReadOnly="False" AcceptsReturn="True" AcceptsTab="True" IsUndoEnabled="False" TextWrapping="Wrap" TabIndex="0" SpellCheck.IsEnabled="True" TextChanged="toSendTextBox_TextChanged" />
        <Button Height="77" HorizontalAlignment="Right" Margin="0,0,10,15" Name="sendButton" VerticalAlignment="Bottom" Width="97" Click="sendButton_Click">Send</Button>
    </Grid>
</Window>
